<!-- 关于我们 -->
<template>
    <div class='bgff h100 pd pt10'>
        <p class="title-label" >关于我们</p>
        <div class="context-box mt20 fwbclass">
            <tinymce ref="tinymceref"></tinymce>
        </div>
        <div class="mt20">
            <n-button type="primary" size="medium" @click="saveFun">保存</n-button>
            
        </div>
    </div>
</template>
<script lang='ts' setup>
import { ref } from "vue";
import { callBack, dxpost, qurl, dxget } from "../../../util/index"
import tinymce from "../../../components/util/tinymce.vue"
const customValue = ref([])
const tinymceref = ref()
const id = 3
const onCreate = () => {
    return {
        city: '',
        site: '',
        more:""
    }
}
const initData = async()=>{
    const {data}:any =  await dxget('cyyx/cyyxconfig',{id})
    tinymceref.value.setContent(data.data)
}
initData()
const saveFun = async()=>{
  const {errno}:any =  await dxpost('cyyx/cyyxconfig',{id,data:tinymceref.value.getContent()},'put')
  if(errno==0){
    window.$message.success('保存成功！')
  }
}
</script>
<style scoped>
    .context-box{
        width: 1400px;
    }
    .fwbclass {
    height: 600px;
}
</style>